package team.se.tms.service;

import team.se.tms.dto.Page;
import team.se.tms.po.LabelInfo;

import java.util.List;

/**
 * 标签业务层
 *
 * @author johnny
 * @date 2018/11/24
 */
public interface LabelInfoService {
    /**
     * 添加标签
     *
     * @param labelInfo 标签信息
     * @return Boolean 添加结果
     * @throws Exception 异常
     * @create on 2018/11/24 by johnny
     */
    Boolean saveLabelInfo(LabelInfo labelInfo) throws Exception;
    /**
     * 按分页查询标签
     *
     * @param page 分页
     * @return List<LabelInfo> 标签列表
     * @throws Exception 异常
     * @create on 2018/11/24 by johnny
     */
    List<LabelInfo> listAllLabelInfos(Page page) throws Exception;
    /**
     * 修改标签
     *
     * @param labelInfo 标签信息
     * @return Boolean 修改结果
     * @throws Exception 异常
     * @create on 2018/11/24 by johnny
     */
    Boolean modifyLabelInfo(LabelInfo labelInfo) throws Exception;
    /**
     * 删除标签
     *
     * @param labelId 标签id
     * @return Boolean 删除结果
     * @throws Exception 异常
     * @create on 2018/11/24 by johnny
     */
    Boolean removeLabelInfo(String labelId) throws Exception;

}
